package main

import (
	"github.com/astaxie/beego/logs"
	_ "smart_home/mqtt/router"
	"smart_home/mqtt/system"
)

func init()  {
	// 日志设置
	logs.SetLogger(logs.AdapterFile, `{"filename":"./logs/test.log"}`)
	logs.EnableFuncCallDepth(true)
	logs.SetLogFuncCallDepth(3)
	logs.SetLogger("console")
	logs.Async()
}

func main()  {
	system.Run()
}